/**
 * @name webpack配置文件
 * assetsPublicPath:文件引用路径
 * assetsSubDirectory:静态资源文件夹路径
 * devtool:调试配置
 * */ 
const path = require('path');
module.exports = {
    dev:{
        devtool:"cheap-module-eval-source-map", 
        assetsPublicPath: '/',
        assetsSubDirectory:'static',
        cssSourceMap:true,
        cacheBusting:true,
        autoOpenBrowser:false,
        proxyTable: {},
        poll: false,
        host: "localhost",
        port: 8000,
    },
    build:{
        index: path.resolve(__dirname, '../dist/index.html'),
        assetsRoot: path.resolve(__dirname, '../dist'),
        assetsPublicPath: './',
        assetsSubDirectory:'static',
        productionSourceMap:true,
    }
}